/* 用户 */
const userInfo = {
	code: 1,
	msg: '登录成功',
	data: {
		id: 1,
		mobile: 666666,
		name: '老六',
		picture: 'https://img1.baidu.com/it/u=785114469,1288179564&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
	}
}
/* 保存地址 */
const saveaddress = {
	code: 1,
	msg: '保存成功'
}
/*查询地址*/
const loadaddress = {
	code: 1,
	msg: '查询成功',
	data: [{
			id: 1,
			name: "王原创",
			phone: "13265927128",
			province: "广东省",
			city: "广州市",
			district: "天河区",
			street: "黄村街道",
			detailAddress: "黄村教辅里三巷5号店",
			isDefault: true,
			tag: null
		},
		{
			id: 2,
			name: "李原文",
			phone: "18824669411",
			province: "广东省",
			city: "东莞市",
			district: "万江街道",
			street: "",
			detailAddress: "电化集团宿舍五座一单元",
			isDefault: false,
			tag: "home"
		},
		{
			id: 3,
			name: "王原创",
			phone: "13265927128",
			province: "广东省",
			city: "广州市",
			district: "黄埔区",
			street: "联和街道",
			detailAddress: "科学城信息大厦706",
			isDefault: false,
			tag: "company"
		},
		{
			id: 4,
			name: "王原创",
			phone: "13265927128",
			province: "广东省",
			city: "广州市",
			district: "天河区",
			street: "黄村街道",
			detailAddress: "三星长庚横一巷二号",
			isDefault: false,
			tag: null
		}
	]
}
/*删除地址*/
const deladdress = {
	code: 1,
	msg: '删除成功'
}

/* 修改手机号 */
const changetel = {
	code: 1,
	msg: '保存成功'
}
/* 修改密码 */
const changepassword = {
	code: 1,
	msg: '修改成功'
}
/* 实名认证 */
const userconfirm = {
	code: 1,
	msg: '认证成功'
}
/* 查询购物车数据 */
const getcartdata = {
	code: 1,
	msg: '查询成功',
	data: [{
			id: 1,
			goods_id: 101,
			goods_name: '高端智能手机 旗舰版',
			goods_image: 'https://img2.baidu.com/it/u=2689223214,2382288352&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=729',
			goods_price: 5999.00,
			original_price: 6599.00,
			goods_num: 1,
			stock: 10,
			spec_text: '8GB+256GB 黑色',
			checked: true
		},
		{
			id: 2,
			goods_id: 102,
			goods_name: '无线蓝牙耳机 降噪版',
			goods_image: 'https://img0.baidu.com/it/u=2751189205,1843346603&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=889',
			goods_price: 499.00,
			original_price: 599.00,
			goods_num: 2,
			stock: 20,
			spec_text: '白色',
			checked: false
		}
	]
}
//删除购物车数据
const deletecart = {
	code: 1,
	msg: '删除成功'
}
//查询分类商品
const getcategory = {
	code: 1,
	msg: '查询成功',
	data: [{
			id: 1,
			name: '衬衫',
			banner: 'https://img0.baidu.com/it/u=241351279,2082133790&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500',
			children: [{
					id: 10,
					name: '款式',
					goodsList: [{
							id: 101,
							name: '短袖衬衫',
							image: 'https://t14.baidu.com/it/u=1973427282,3848631399&fm=224&app=112&f=JPEG?w=500&h=500'
						},
						{
							id: 102,
							name: '长袖衬衫',
							image: 'https://img2.baidu.com/it/u=153341375,3963478474&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500'
						},
						{
							id: 103,
							name: '格子衬衫',
							image: 'https://img1.baidu.com/it/u=2256543438,3405120496&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1069'
						}
						// 更多商品...
					]
				},
				// 更多子分类...
			]
		},
		{
			id: 2,
			name: '休闲裤',
			banner: 'https://img1.baidu.com/it/u=4245117024,907295575&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500',
			children: [{
					id: 20,
					name: '款式',
					goodsList: [{
							id: 111,
							name: '休闲长裤',
							image: 'https://img1.baidu.com/it/u=2156211629,3811189566&fm=253&app=138&f=JPEG?w=800&h=1067'
						},
						{
							id: 112,
							name: '休闲短裤',
							image: 'https://img1.baidu.com/it/u=3701857299,656485202&fm=253&app=138&f=JPEG?w=800&h=1067'
						},
						{
							id: 113,
							name: '休闲七分裤',
							image: 'https://img2.baidu.com/it/u=629123026,2170638040&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1069'
						}
						// 更多商品...
					]
				},
				// 更多子分类...
			]
		},
		{
			id: 3,
			name: '卫衣',
			banner: 'https://img1.baidu.com/it/u=1259236943,2990314854&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			children: [{
					id: 30,
					name: '款式',
					goodsList: [{
							id: 301,
							name: '圆领卫衣',
							image: 'https://img1.baidu.com/it/u=2921147638,2980356474&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500'
						},
						{
							id: 302,
							name: '连帽卫衣',
							image: 'https://img1.baidu.com/it/u=2590226954,1310730526&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1067'
						},
						{
							id: 303,
							name: '立领卫衣',
							image: 'https://img0.baidu.com/it/u=2269904640,1932337664&fm=253&app=138&f=JPEG?w=800&h=1067'
						}
						// 更多商品...
					]
				},
				// 更多子分类...
			]
		},
		// 更多分类...
	]
};
//获取商品详情
const getgoodsInfo = {
	code: 1,
	msg: '查询成功',
	data: {
		id: 101,
		iscollect: false,
		title: '2023新款男士休闲衬衫 纯棉修身商务衬衣',
		price: '199.00',
		originalPrice: '299.00',
		discount: '100.00',
		tags: ['纯棉', '透气', '商务休闲'],
		images: [{
				url: 'https://img1.baidu.com/it/u=1147214739,3186620525&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500'
			},
			{
				url: 'https://img1.baidu.com/it/u=2801206638,1887012880&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1067'
			},
		],
		imgChart: [{
				id: 1,
				img: 'https://img1.baidu.com/it/u=121899138,340671853&fm=253&app=138&f=JPEG?w=800&h=1067'
			},
			{
				id: 2,
				img: 'https://img0.baidu.com/it/u=4109927258,3817379&fm=253&app=138&f=JPEG?w=800&h=1067'
			},
		],
		detail: `
          <table border="1" cellpadding="5" cellspacing="0" style="border-collapse: collapse; width: 100%;">
                 <tr>
                   <td colspan="2"><strong>商品参数</strong></td>
                 </tr>
                 <tr>
                   <td width="30%">材质</td>
                   <td>100%棉</td>
                 </tr>
                 <tr>
                   <td>版型</td>
                   <td>修身</td>
                 </tr>
                 <tr>
                   <td>领型</td>
                   <td>标准领</td>
                 </tr>
                 <tr>
                   <td>袖型</td>
                   <td>长袖</td>
                 </tr>
                 <tr>
                   <td>适用季节</td>
                   <td>春季、秋季</td>
                 </tr>
                 <tr>
                   <td colspan="2"><strong>洗涤说明</strong></td>
                 </tr>
                 <tr>
                   <td>1</td>
                   <td>建议手洗或机洗（轻柔模式）</td>
                 </tr>
                 <tr>
                   <td>2</td>
                   <td>不可漂白</td>
                 </tr>
                 <tr>
                   <td>3</td>
                   <td>悬挂晾干</td>
                 </tr>
                 <tr>
                   <td>4</td>
                   <td>中温熨烫</td>
                 </tr>
               </table>
        `,
		typeOptions: [{
				id: 1,
				name: '深灰+黑色特惠两件装',
				tip: '收藏加购优先发货',
				price: 160,
				oldprice: 260,
				img: 'https://t15.baidu.com/it/u=672573336,571727405&fm=224&app=112&f=JPEG?w=500&h=500',
				sizeOptions: [{
						id: 1,
						value: '27',
						desc: '适合90-105斤',
						qty: 0,
					},
					{
						id: 2,
						value: '29',
						desc: '适合105-115斤',
						qty: 20,
					},
					{
						id: 3,
						value: '30',
						desc: '适合115-125斤',
						qty: 30,
					}
				]
			},
			{
				id: 2,
				name: '浅灰+黑色特惠两件装',
				tip: '收藏加购优先发货',
				price: 162,
				oldprice: 260,
				img: 'https://img0.baidu.com/it/u=377297807,3619689206&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=709',
				sizeOptions: [{
						id: 1,
						value: '28',
						desc: '适合90-105斤',
						qty: 10,
					},
					{
						id: 2,
						value: '29',
						desc: '适合105-115斤',
						qty: 20,
					}
				]
			}
		],
		serviceinfo: [
			'退货宝·7天无理由退货',
		],
		shippinginfo: {
			usrnm: '美年达6翻了',
			address: '',
			addressdetail: '江夏村东七巷横13号',
			zip: '包邮',
			shippingtime: '预计4小时内发货'
		}
	}
};
/* 添加商品到购物车 */
const addtocart = {
	code: 1,
	msg: '添加成功'
};
/*获取商品订单信息*/
const getgoodsorder = {
	code: 1,
	msg: '获取成功',
	data: {
		orderNo: '20230718123456',
		createTime: '2023-07-18 12:34:56',
		amount: '198.00',
		distcount: '38.00',
		shippingFee: '0.00',
		totalAmount: '160.00',
		goodslist: [{
				id: 1,
				name: '白色短袖T恤(蓝紫图案)',
				color: '白色',
				size: 'L',
				qty: 2,
				price: 120,
				picture: 'https://img1.baidu.com/it/u=4073950893,2945325964&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667'
			},
			{
				id: 2,
				name: '白色短袖T恤',
				color: '白色',
				size: 'L',
				qty: 2,
				price: 40,
				picture: 'https://img1.baidu.com/it/u=2719353110,1895419565&fm=253&app=138&f=JPEG?w=800&h=1069'
			}
		],
		addressinfo: {
			id: 1,
			name: 'rj',
			address: '黄村教辅里三巷5号店',
			tel: '13265927128'
		},
		Deliveryinfo: [
			'快递包邮',
			'48h内发货'
		],
		AfterSales: [
			'免费上门退换',
			'上门取件享运费全免',
			'自寄补首重运费'
		]
	}
}
//取商品首页轮播数据
const getbannerList = {
	code: 1,
	msg: '获取成功',
	data: [{
			id: 1,
			image: 'https://img1.baidu.com/it/u=2273123085,2604324722&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=667',
			link: '/pages/goods/detail?id=1001',
			title: "昨夜星辰昨夜风，画楼西畔桂堂东"
		},
		{
			id: 2,
			image: 'https://img0.baidu.com/it/u=3723049706,591632331&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1067',
			link: '/pages/goods/detail?id=1002',
			title: "昨夜星辰昨夜风，画楼西畔桂堂东"
		},
		{
			id: 3,
			image: 'https://img1.baidu.com/it/u=3248639811,1903335798&fm=253&app=138&f=JPEG?w=800&h=1067',
			link: '/pages/goods/detail?id=1003',
			title: "昨夜星辰昨夜风，画楼西畔桂堂东"
		}

	],
}
//取商品信息
const getgoodslist = {
	code: 1,
	msg: '获取成功',
	data: [{
			id: 1,
			name: '新款男士休闲衬衫',
			image: 'https://img0.baidu.com/it/u=3767169115,3942007352&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1069',
			price: 569,
			sales: 100
		},
		{
			id: 2,
			name: '纯棉修身商务衬衫',
			image: 'https://img2.baidu.com/it/u=2920123788,1235096115&fm=253&app=138&f=JPEG?w=800&h=1069',
			price: 234,
			sales: 1020
		},
		{
			id: 3,
			name: '透气修身商务衬衫',
			image: 'https://img0.baidu.com/it/u=395733507,4037558741&fm=253&app=138&f=JPEG?w=800&h=1069',
			price: 99,
			sales: 1010
		},
		{
			id: 4,
			name: '商务修身商务衬衫',
			image: 'https://img1.baidu.com/it/u=753426184,797159177&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=800',
			price: 9,
			sales: 10
		}, {
			id: 5,
			name: '休闲修身商务衬衫',
			image: 'https://img0.baidu.com/it/u=1300368177,2551495363&fm=253&app=138&f=JPEG?w=800&h=800',
			price: 199,
			sales: 10
		}, {
			id: 6,
			name: '透气修身商务裤子',
			image: 'https://img0.baidu.com/it/u=3790799967,833375695&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1069',
			price: 199,
			sales: 10
		}, {
			id: 7,
			name: '商务修身商务裤子',
			image: 'https://img1.baidu.com/it/u=2097920399,1394300958&fm=253&app=138&f=JPEG?w=800&h=1069',
			price: 199,
			sales: 10
		}, {
			id: 8,
			name: '纯棉修身商务裤子',
			image: 'https://img0.baidu.com/it/u=1793859535,1740050276&fm=253&app=138&f=JPEG?w=800&h=1069',
			price: 199,
			sales: 10
		}
	]
}
//取代发货信息
const getunshipped = {
	code: 1,
	msg: '获取成功',
	count: 6,
	data: [{
			id: 'ORD202307171502',
			orderNo: '2023071715023456',
			status: 'wait_ship',
			statusText: '待发货',
			createTime: '2023-07-17 15:02:45',
			goodsList: [{
				id: 'G003',
				image: 'https://img1.baidu.com/it/u=210399728,1004431273&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				name: '运动休闲鞋',
				spec: '黑色 42',
				price: '239.00',
				num: 1
			}]
		},
		{
			id: 'ORD202307161120',
			orderNo: '2023071611204567',
			status: 'wait_ship',
			statusText: '待发货',
			createTime: '2023-07-16 11:20:30',
			goodsList: [{
					id: 'G004',
					image: 'https://img2.baidu.com/it/u=1481451560,1184548378&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=557',
					name: '智能手表',
					spec: '黑色 标准版',
					price: '599.00',
					num: 1
				},
				{
					id: 'G005',
					image: 'https://img1.baidu.com/it/u=1422607027,1130620714&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=667',
					name: '快充充电器',
					spec: '白色 30W',
					price: '69.00',
					num: 2
				}
			]
		}
	]
}
//取已发货订单
const getshipped = {
	code: 1,
	msg: '获取成功',
	count: 6,
	data: [{
			id: 'ORD202307171502',
			orderNo: '2023071715023456',
			status: 'wait_ship',
			statusText: '已发货',
			createTime: '2023-07-17 15:02:45',
			goodsList: [{
				id: 'G003',
				image: 'https://img1.baidu.com/it/u=210399728,1004431273&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				name: '运动休闲鞋',
				spec: '黑色 42',
				price: '239.00',
				num: 1
			}]
		},
		{
			id: 'ORD202307161120',
			orderNo: '2023071611204567',
			status: 'wait_ship',
			statusText: '已发货',
			createTime: '2023-07-16 11:20:30',
			goodsList: [{
					id: 'G004',
					image: 'https://img2.baidu.com/it/u=1481451560,1184548378&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=557',
					name: '智能手表',
					spec: '黑色 标准版',
					price: '599.00',
					num: 1
				},
				{
					id: 'G005',
					image: 'https://img1.baidu.com/it/u=1422607027,1130620714&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=667',
					name: '快充充电器',
					spec: '白色 30W',
					price: '69.00',
					num: 2
				}
			]
		}
	]
}
//确定收货
const comfirmReceipt = {
	code: 1,
	msg: '确定成功'
}
//取消代发货订单
const cancelorder = {
	code: 1,
	msg: '取消成功'
}

//取评价信息
const getcomment = {
	code: 1,
	msg: '获取成功',
	uncomment: 2,
	hadcomment: 2,
	addcomment: 1,
	data: [{
			id: 1,
			status: 0,
			goodsImg: 'https://img1.baidu.com/it/u=562750789,2745095271&fm=253&app=138&f=JPEG?w=800&h=1319',
			goodsName: '高端时尚女装连衣裙',
			spec: '红色; XL',
			rate: 5,
			content: '',
			addcontent: '',
			images: [{
					id: 1,
					isdel: 0,
					url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
				},
				{
					id: 2,
					isdel: 0,
					url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
				},
			],
			commentex: []
		},
		{
			id: 2,
			status: 1,
			goodsImg: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			goodsName: '男士休闲运动鞋',
			spec: '黑色; 42码',
			rate: 5,
			content: '东西不错',
			addcontent: '',
			images: [{
				id: 1,
				isdel: 0,
				url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
			}],
			commentex: [{
				days: 30,
				addcontent: '东西有点瑕疵',
				images: [{
					id: 1,
					isdel: 0,
					url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
				}],
			}]
		},
		{
			id: 3,
			status: 2,
			goodsImg: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
			goodsName: '男士休闲运动鞋',
			spec: '黑色; 42码',
			rate: 5,
			content: '东西不错',
			addcontent: '',
			images: [{
				id: 1,
				isdel: 0,
				url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
			}],
			commentex: [{
					days: 30,
					addcontent: '东西有点瑕疵',
					images: [{
						id: 1,
						isdel: 0,
						url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
					}],
				},
				{
					days: 45,
					addcontent: '东西坏了',
					images: [{
						id: 1,
						isdel: 0,
						url: 'https://img1.baidu.com/it/u=936102535,4058165412&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500'
					}],
				},
			]
		}
	]
}
//提交评论
const submitcomment = {
	code: 1,
	msg: '评论成功'
}

//取消收藏
const removemycollect = {
	code: 1,
	msg: '取消成功'
}

//查询我的收藏
const getmycollect = {
	code: 1,
	msg: '获取成功',
	allcount: 4,
	haddiscount: 1,
	expire: 1,
	data: [{
			id: Math.ceil(Math.random() * 1000),
			goodsImage: 'https://t13.baidu.com/it/u=670857190,690414997&fm=224&app=112&f=JPEG?w=500&h=500',
			goodsName: '潮流衬衫男',
			spec: '规格:红色,XL',
			currentPrice: 150,
			originalPrice: 150,
			status: 0
		},
		{
			id: Math.ceil(Math.random() * 1000),
			goodsImage: 'https://img2.baidu.com/it/u=3468955495,2671722484&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500',
			goodsName: '潮流衬衫男2',
			spec: '规格:红色a,XL',
			currentPrice: 140,
			originalPrice: 140,
			status: 1
		},
		{
			id: Math.ceil(Math.random() * 1000),
			goodsImage: 'https://img2.baidu.com/it/u=979794488,13423575&fm=253&app=53&size=f60,60&n=0&g=0n&f=jpeg&fmt=auto?sec=1756878078&t=d717a348898b903323f3199b2f57c329',
			goodsName: '潮流衬衫男D',
			spec: '规格:红色,XL',
			currentPrice: 100,
			originalPrice: 140,
			status: 2
		},
		{
			id: Math.ceil(Math.random() * 1000),
			goodsImage: 'https://img0.baidu.com/it/u=3481620021,4193474827&fm=253&app=120&f=JPEG?w=500&h=500',
			goodsName: '潮流衬衫男F',
			spec: '规格:红色,XXL',
			currentPrice: 180,
			originalPrice: 140,
			status: 0
		}
	]
}
//提交售后申请
const applyaftersale = {
	code: 1,
	msg: '申请已发起,等待商家处理'
}
//获取订单详情
const getorderdetail = {
	code: 1,
	msg: '获取成功',
	data: {
		id: 1,
		goodsImage: 'https://img0.baidu.com/it/u=395733507,4037558741&fm=253&app=138&f=JPEG?w=800&h=1069',
		goodsName: '高端时尚女装连衣裙',
		spec: '红色; XL',
		price: '299.00'
	}
}
//查看我的订单
const getmyorder = {
	code: 1,
	msg: '获取成功',
	data: [{
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000000',
			status: 0,
			statusText: '已取消',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 0,
			afterSaleId: 0,
			isclose: 1,
			goodsList: [{
				goodsId: 1,
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		}, {
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000001',
			status: 1,
			statusText: '待发货',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 0,
			afterSaleId: 1,
			isclose: 0,
			goodsList: [{
				goodsId: Math.ceil(Math.random() * 1000),
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		},
		{
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000002',
			status: 1,
			statusText: '待发货',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 0,
			afterSaleId: 1,
			isclose: 0,
			goodsList: [{
					goodsId: Math.ceil(Math.random() * 1000),
					goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
					goodsName: '男生休闲服装',
					spec: '红色,XL',
					price: 150,
					count: 1
				},
				{
					goodsId: Math.ceil(Math.random() * 1000),
					goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
					goodsName: '男生休闲服装',
					spec: '红色,XL',
					price: 150,
					count: 1
				}
			],
		}, {
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000003',
			status: 2,
			statusText: '待收货',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 0,
			afterSaleId: 1,
			isclose: 0,
			goodsList: [{
				goodsId: Math.ceil(Math.random() * 1000),
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		}, {
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000004',
			status: 3,
			statusText: '已完成',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 0,
			afterSaleId: 1,
			isclose: 0,
			goodsList: [{
				goodsId: Math.ceil(Math.random() * 1000),
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		}, {
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000005',
			status: 3,
			statusText: '已完成',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 0,
			afterSaleId: 1,
			isclose: 1,
			goodsList: [{
				goodsId: Math.ceil(Math.random() * 1000),
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		}, {
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000006',
			status: 4,
			statusText: '售后处理中',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 1,
			afterSaleId: 1,
			isclose: 0,
			goodsList: [{
				goodsId: Math.ceil(Math.random() * 1000),
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		}, {
			id: Math.ceil(Math.random() * 1000),
			orderNo: 'NO0000007',
			status: 3,
			statusText: '售后完成',
			totalAmount: 150,
			createTime: '2023-06-15 10:30',
			hasAfterSale: 1,
			afterSaleId: 1,
			isclose: 1,
			goodsList: [{
				goodsId: Math.ceil(Math.random() * 1000),
				goodsImage: 'https://img2.baidu.com/it/u=2262106489,193903777&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500',
				goodsName: '男生休闲服装',
				spec: '红色,XL',
				price: 150,
				count: 1
			}],
		}
	]
}
//获取售后详情	
const getaftersaledetail = {
	code: 1,
	msg: '获取成功',
	afterSaleInfo: {
		id: 1,
		currentStep: 2, // 当前步骤索引
		afterSaleNo: 'AS20230615001',
		type: 1, // 1:退货退款 2:仅退款
		typeText: '退货退款',
		status: 1, // 0:已取消 1:处理中 2:已完成 3:已拒绝
		statusText: '商家正在处理',
		statusDesc: '待商家审核后退回至您的支付账户',
		amount: '299.00',
		reason: '商品质量问题',
		remark: '商品有明显瑕疵，影响正常使用',
		createTime: '2023-06-15 10:30:25',
		completeTime: '2023-06-18 14:15:30',
		images: [{
				url: 'https://img2.baidu.com/it/u=402864620,3069771778&fm=253&app=138&f=JPEG?w=800&h=1069'
			},
			{
				url: 'https://img1.baidu.com/it/u=334580388,3583479815&fm=253&app=138&f=JPEG?w=800&h=1069'
			}
		]
	},
	goodsInfo: {
		id: 1,
		goodsImage: 'https://img0.baidu.com/it/u=1483725905,2690061771&fm=253&app=138&f=JPEG?w=800&h=1421',
		goodsName: '高端时尚女装连衣裙',
		spec: '红色; XL',
		price: '299.00'
	},
	progressList: [{
			title: '提交申请',
			desc: '2023-06-15 10:30'
		},
		{
			title: '商家审核',
			desc: '2023-06-15 14:45'
		},
		{
			title: '买家退货',
			desc: '2023-06-16 15:30 | 物流单号：YT123456789'
		},
		{
			title: '商家收货',
			desc: ''
		},
		{
			title: '退款完成',
			desc: ''
		}
	]
}
//取消售后申请
const ftersalecancel = {
	code: 1,
	msg: '撤销成功'
}


//立即购买
const buynow = {
	code: 1,
	msg: '创建订单成功',
	id: 111,
}
//查看物流
const getlogisticsInfo = {
	code: 1,
	msg: '查询成功',
	logisticsInfo: {
		id: 1,
		company: '顺丰速运',
		number: 'SF1234567890',
		status: 2, // 1:运输中 2:已签收 3:异常
		statusText: '已签收',
		desc: '包裹已签收，签收人：本人',
		serviceTel: '95338',
		website: 'www.sf-express.com',
		traces: [{
				time: '2023-06-18 14:30:25',
				desc: '已签收，签收人：本人',
				location: '北京市朝阳区望京街道'
			},
			{
				time: '2023-06-18 08:15:10',
				desc: '快递员派送中',
				location: '北京市朝阳区望京站点'
			},
			{
				time: '2023-06-17 20:45:36',
				desc: '已到达北京转运中心',
				location: '北京转运中心'
			},
			{
				time: '2023-06-16 15:20:18',
				desc: '已发往北京',
				location: '上海转运中心'
			},
			{
				time: '2023-06-15 10:30:45',
				desc: '商家已发货',
				location: '上海市浦东区仓库'
			}
		]
	},
	goodsInfo: {
		goodsImage: 'https://img0.baidu.com/it/u=1483725905,2690061771&fm=253&app=138&f=JPEG?w=800&h=1421',
		goodsName: '高端时尚女装连衣裙',
		spec: '红色; XL',
		count: 1,
		orderNo: 'NO20230615001'
	},
}
//查询账户余额消费
const getconsumlist = {
	code: 1,
	msg: '查询成功',
	balance: 1298.5,
	list: [{
			id: 1,
			type: 'recharge',
			title: '账户充值',
			amount: 500,
			time: '2023-06-18 14:30'
		},
		{
			id: 2,
			type: 'withdraw',
			title: '购物消费',
			amount: 200,
			time: '2023-06-15 10:20'
		},
		{
			id: 3,
			type: 'recharge',
			title: '账户充值',
			amount: 1000,
			time: '2023-06-10 08:15'
		},
		{
			id: 4,
			type: 'withdraw',
			title: '购物消费',
			amount: 300,
			time: '2023-06-05 16:45'
		}
	]
}
//查询优惠卷
const getCouponList = {
	code: 1,
	msg: '查询成功',
	usingqty: 4, //已使用数量
	effectiveqty: 3, //有效数量
	expireqty: 2, //过期数量
	data: [{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: ['限时', '限量', '新人专享'][Math.floor(Math.random() * 3)]
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: ['限时', '限量', '新人专享'][Math.floor(Math.random() * 3)]
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: null
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: ['限时', '限量', '新人专享'][Math.floor(Math.random() * 3)]
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: null
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: ['限时', '限量', '新人专享'][Math.floor(Math.random() * 3)]
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: ['限时', '限量', '新人专享'][Math.floor(Math.random() * 3)]
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: null
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: null
		},
		{
			id: Math.ceil(Math.random() * 1000),
			name: ['店铺通用券', '新品专享券', '会员专享券', '节日特惠券'][Math.floor(Math.random() * 4)],
			amount: [5, 10, 20, 50, 100][Math.floor(Math.random() * 5)],
			condition: [99, 199, 299, 499][Math.floor(Math.random() * 4)],
			desc: ['全店通用', '部分商品可用', '特殊商品除外'][Math.floor(Math.random() * 3)],
			startTime: '2023-06-01',
			endTime: '2023-06-30',
			status: Math.floor(Math.random() * 3),
			tag: ['限时', '限量', '新人专享'][Math.floor(Math.random() * 3)]
		}
	]
}
//查询积分
const getpointList = {
	code: 1,
	msg: '查询成功',
	pointsBalance: 1335,
	expiryDate: '2026-1-1',
	data: [{
			id: 1,
			status: 1,
			type: 'earn',
			title: '购物奖励',
			points: 200,
			time: '2023-06-18 14:30'
		},
		{
			id: 2,
			type: 'spend',
			status: 2,
			title: '积分兑换',
			points: 100,
			time: '2023-06-15 10:20'
		},
		{
			id: 3,
			type: 'earn',
			status: 1,
			title: '每日签到',
			points: 10,
			time: '2023-06-15 08:15'
		},
		{
			id: 4,
			type: 'earn',
			status: 1,
			title: '评价奖励',
			points: 20,
			time: '2023-06-14 16:45'
		},
		{
			id: 5,
			type: 'earn',
			status: 1,
			title: '购物奖励',
			points: 350,
			time: '2023-06-10 12:30'
		},
		{
			id: 6,
			type: 'spend',
			status: 2,
			title: '积分抽奖',
			points: 50,
			time: '2023-06-05 09:15'
		}
	]
}

//查询游览历史	
const gettravelhis = {
	code: 1,
	msg: '查询成功',
	data: [{
		checked: false,
		id: Math.ceil(Math.random() * 1000),
		goodsImage: 'https://img0.baidu.com/it/u=1483725905,2690061771&fm=253&app=138&f=JPEG?w=800&h=1421',
		goodsName: `潮流衬衫男0`,
		price: (Math.random() * 500 + 50).toFixed(2),
		viewTime: '2025-1-1 13:59'
	}, {
		checked: false,
		id: Math.ceil(Math.random() * 1000),
		goodsImage: 'https://img2.baidu.com/it/u=3468955495,2671722484&fm=253&fmt=auto&app=120&f=JPEG?w=500&h=500',
		goodsName: `潮流衬衫男2`,
		price: (Math.random() * 500 + 50).toFixed(2),
		viewTime: '2025-4-1 14:59'
	}, {
		checked: false,
		id: Math.ceil(Math.random() * 1000),
		goodsImage: 'https://img2.baidu.com/it/u=979794488,13423575&fm=253&app=53&size=f60,60&n=0&g=0n&f=jpeg&fmt=auto?sec=1756878078&t=d717a348898b903323f3199b2f57c329',
		goodsName: `潮流衬衫男3`,
		price: (Math.random() * 500 + 50).toFixed(2),
		viewTime: '2025-2-1 12:59'
	}, {
		checked: false,
		id: Math.ceil(Math.random() * 1000),
		goodsImage: 'https://img0.baidu.com/it/u=3481620021,4193474827&fm=253&app=120&f=JPEG?w=500&h=500',
		goodsName: `潮流衬衫男4`,
		price: (Math.random() * 500 + 50).toFixed(2),
		viewTime: '2025-3-1 16:59'
	}]
}


//删除游览历史	
const deltravelhis = {
	code: 1,
	msg: '删除成功'
}
export default {
	getbannerList,
	gettravelhis,
	deltravelhis,
	userInfo,
	saveaddress,
	loadaddress,
	deladdress,
	changetel,
	changepassword,
	userconfirm,
	getcartdata,
	getcategory,
	getgoodsInfo,
	addtocart,
	getgoodsorder,
	getgoodslist,
	getunshipped,
	cancelorder,
	getshipped,
	comfirmReceipt,
	deletecart,
	getcomment,
	submitcomment,
	removemycollect,
	getmycollect,
	applyaftersale,
	getorderdetail,
	getmyorder,
	getaftersaledetail,
	ftersalecancel,
	buynow,
	getlogisticsInfo,
	getconsumlist,
	getCouponList,
	getpointList
}